package com.site.wisdom_construction.service.qualityModule;

import com.site.wisdom_construction.dao.qualityModule.QualityInspectionDao;
import com.site.wisdom_construction.entity.qualityModule.QualityInspection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/13
 * @Description
 */
@Service
public class QualityInspectionService implements QualityInspectionDao {
    @Autowired
    private QualityInspectionDao qualityInspectionDao;

    @Override
    public int insertQualityInspection(Map map) {
        return qualityInspectionDao.insertQualityInspection(map);
    }

    @Override
    public int deleteQualityInspection(Map map) {
        return qualityInspectionDao.deleteQualityInspection(map);
    }

    @Override
    public int updateQualityInspection(Map map) {
        return qualityInspectionDao.updateQualityInspection(map);
    }

    @Override
    public List<QualityInspection> findQualityInspectionByPage(Map map) {
        return qualityInspectionDao.findQualityInspectionByPage(map);
    }

    @Override
    public long Total(Map map) {
        return qualityInspectionDao.Total(map);
    }

    @Override
    public List<QualityInspection> selectQualityInspection(Map map) {
        return qualityInspectionDao.selectQualityInspection(map);
    }

    @Override
    public QualityInspection findQualityInspectionById(Map map) {
        return qualityInspectionDao.findQualityInspectionById(map);
    }
}
